package com.wash.shoes.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author ljg
 * @since 2024-08-29
 */
@ApiModel(value = "订单的商品")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("os_order_good")
public class OrderGoodPo extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId
    private String id;

    @ApiModelProperty(value = "店铺的id")
    private String shopId;

    @ApiModelProperty(value = "订单的id")
    private String orderId;

    @ApiModelProperty(value = "客户的id")
    private String customId;

    @ApiModelProperty(value = "商品的id")
    private String goodsId;

    @ApiModelProperty(value = "商品的名称")
    private String name;

    @ApiModelProperty(value = "商品的价格")
    private Double price;

    @ApiModelProperty(value = "鞋子的数量")
    private Integer shoesNum;

    @ApiModelProperty(value = "购买商品的数量")
    private Integer buyNum;

    @ApiModelProperty(value = "类型 普洗 精洗  奢洗 干洗")
    private String washType;

    @ApiModelProperty(value = "商品的图片")
    private String shopGoodsUrl;

    @ApiModelProperty(value = "抖音的item_order_id")
    private String itemOrderId;
    @TableField("accepted")
    @ApiModelProperty(value = "抖音是否接单 1已接单 0 未接单")
    private Boolean accepted;
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "扩展字段")
    private String extendInfo;
    /**
     * 抖音预约返回的code
     */
    @TableField("dy_book_code")
    private String dyBookCode;
    /**
     * 抖音预约id
     */
    @TableField("dy_book_id")
    private String dyBookId;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者")
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
